package org.igeek.config.di.ch01;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @package org.igeek.config.di.ch01
 * @Description 控制层-控制view前端  后端服务
 * @Author LittlePunk [296526219@qq.ccom]
 * @Version 2022.1
 * @Date 2023/11/14 10:17
 *
 * @controller 等同于 @component
 * @controller 没有指定beanName  默认类名首字母小写  userController
 *  * @controller ("值")  值就是beanName
 */
@Controller("controller")
public class UserController {
    //get 请求： http://localhost:8899/login?name=xxx&password=xxx
    @Autowired
    private UserService userService;
    public void login(){
        //执行业务
        userService.login("name","pwd");
        System.out.println("UserController  正在接收请求...用户登录");
    }
}
